package com.pda.gongpin.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.gongpin.R;
import com.pda.gongpin.bean.HandingOutListBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class HandingOutListAdapter extends BaseAdapter<HandingOutListBean> {
    public HandingOutListAdapter(int layoutResId, @Nullable List<HandingOutListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HandingOutListBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_no,item.getDeliveryNo());
        helper.setText(R.id.tv_partner,"往来单位： "+item.getPartner());
        helper.setText(R.id.tv_recipient,"收货人： "+item.getRecipient());
        helper.setText(R.id.tv_telephone,"收货电话： "+item.getTelephone());
        helper.setText(R.id.tv_address,"收货地址： "+item.getAddress());
        helper.setText(R.id.tv_shipmentsManner,"发货方式： "+item.getShipmentsManner());
        helper.setText(R.id.tv_logisticsCompanies,"物流公司： "+item.getLogisticsCompanies());
        helper.setText(R.id.tv_createTime,"创建时间： "+item.getCreateTime());
    }
}
